package test

import (
	"gitee.com/shiwjlinux/vblog01/conf"
	"gitee.com/shiwjlinux/vblog01/ioc"
	"github.com/spf13/cobra"

	_ "gitee.com/shiwjlinux/vblog01/apps"
)

func DevelopmentSetup() {
	if err := conf.LoadConfigFromEnv(); err != nil {
		panic(err)
	}

	cobra.CheckErr(ioc.Controller.Init())
	cobra.CheckErr(ioc.Api.Init())
}
